<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1">
	<link rel="icon" href="/images/logo.png">
	<link rel="stylesheet" href="/js/framework/layui/css/layui.css">
	<link rel="stylesheet" href="/css/login.css">
	<script type="text/javascript" src="/js/framework/layui/layui.js"></script>
	<script type="text/javascript" src="/js/framework/jquery.min.js"></script>
	<script type="text/javascript" src="/js/framework/md5.js"></script>
	<script type="text/javascript" src="/js/framework/model.js"></script>
	<script type="text/javascript" src="/js/framework/core.js"></script>
	<script type="text/javascript" src="/js/admin/login.js"></script>
	<title>宇燕管理平台</title>
</head>
<body class="login-body">
	<div class="login-box">
		<form id="login" class="layui-form">
			<div class="login-box-title"><h2>用户登录</h2></div>
			<div class="layui-form-item">
				<div class="layui-input-wrap">
					<div class="layui-input-prefix">
						<i class="layui-icon layui-icon-username"></i>
					</div>
					<input 
						type="text" 
						name="account" 
						placeholder="账号"
						autocomplete="off" 
						class="layui-input" 
						lay-affix="clear" 
						onkeydown="return $.module.login.keyboardSubmit(this, event);"
					>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-wrap">
					<div class="layui-input-prefix">
						<i class="layui-icon layui-icon-password"></i>
					</div>
					<input 
						type="password" 
						name="password" 
						placeholder="密码"
						autocomplete="off" 
						class="layui-input" 
						lay-affix="eye" 
						onkeydown="return $.module.login.keyboardSubmit(this, event);"
					>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-row">
					<div class="layui-col-xs7">
						<div class="layui-input-wrap">
							<div class="layui-input-prefix">
								<i class="layui-icon layui-icon-vercode"></i>
							</div>
							<input 
								type="text" 
								name="validateCode" 
								placeholder="验证码"
								autocomplete="off" 
								class="layui-input" 
								lay-affix="clear" 
								onkeydown="return $.module.login.keyboardSubmit(this, event);"
							>
						</div>
					</div>
					<div class="layui-col-xs5">
						<div style="margin-left: 10px;">
							<img src="" id="captchaImg"
								onclick="$.module.login.loadCaptcha()">
						</div>
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<span class="layui-btn layui-btn-fluid" onclick="$.module.login.submit();">登录</span>
			</div>
		</form>
	</div>
</body>
<script type="text/javascript">
	layui.use(['layer'], function(){
		$.layer=layui.layer;
		var msg=$.parseHrefParam('msg');
		if(msg){
			$.layer.msg(msg);
		}
	});
	$.module.login.loadCaptcha();
	window.setTimeout(function(){
		$("#login [name='account']").focus();
	});
</script>
</html>